package io.renren.modules.comment.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.comment.dao.V9CommentDao;
import io.renren.modules.comment.entity.V9CommentEntity;
import io.renren.modules.comment.service.V9CommentService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("v9CommentService")
public class V9CommentServiceImpl extends ServiceImpl<V9CommentDao, V9CommentEntity> implements V9CommentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<V9CommentEntity> page = this.page(
                new Query<V9CommentEntity>().getPage(params),
                new QueryWrapper<V9CommentEntity>()
        );

        return new PageUtils(page);
    }

}
